package nc.impl.so;

import nc.bs.so.syncest.ace.bp.EstDataBp;
import nc.bs.so.syncest.ace.bp.SendEasBp;
import nc.impl.pub.ace.AceSyncestPubServiceImpl;
import nc.ui.querytemplate.querytree.IQueryScheme;
import nc.vo.pub.BusinessException;
import nc.vo.so.syncest.AggEasSyncestVO;

public class SyncestMaintainImpl extends AceSyncestPubServiceImpl implements nc.itf.so.ISyncestMaintain {

	@Override
	public void delete(AggEasSyncestVO[] clientFullVOs, AggEasSyncestVO[] originBills) throws BusinessException {
		super.pubdeleteBills(clientFullVOs, originBills);
	}

	@Override
	public AggEasSyncestVO[] insert(AggEasSyncestVO[] clientFullVOs, AggEasSyncestVO[] originBills)
			throws BusinessException {
		return super.pubinsertBills(clientFullVOs, originBills);
	}

	@Override
	public AggEasSyncestVO[] update(AggEasSyncestVO[] clientFullVOs, AggEasSyncestVO[] originBills)
			throws BusinessException {
		return super.pubupdateBills(clientFullVOs, originBills);
	}

	@Override
	public AggEasSyncestVO[] query(IQueryScheme queryScheme) throws BusinessException {
		return super.pubquerybills(queryScheme);
	}

	@Override
	public AggEasSyncestVO[] save(AggEasSyncestVO[] clientFullVOs, AggEasSyncestVO[] originBills)
			throws BusinessException {
		return super.pubsendapprovebills(clientFullVOs, originBills);
	}

	@Override
	public AggEasSyncestVO[] unsave(AggEasSyncestVO[] clientFullVOs, AggEasSyncestVO[] originBills)
			throws BusinessException {
		return super.pubunsendapprovebills(clientFullVOs, originBills);
	}

	@Override
	public AggEasSyncestVO[] approve(AggEasSyncestVO[] clientFullVOs, AggEasSyncestVO[] originBills)
			throws BusinessException {
		return super.pubapprovebills(clientFullVOs, originBills);
	}

	@Override
	public AggEasSyncestVO[] unapprove(AggEasSyncestVO[] clientFullVOs, AggEasSyncestVO[] originBills)
			throws BusinessException {
		return super.pubunapprovebills(clientFullVOs, originBills);
	}

	@Override
	public AggEasSyncestVO[] queryEstData(String actionName, String whrPart) throws BusinessException {
		return new EstDataBp().queryEstData(actionName, whrPart);
	}

	@Override
	public AggEasSyncestVO sendEAS(AggEasSyncestVO bill) throws BusinessException {
		return new SendEasBp().exec(bill);
	}

}
